package backpage.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 员工月度工资汇总表
 */
@Data
@TableName("salary_summary")
public class SalarySummary implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    private Long employeeId;

    /**
     * 当前月份, 使用该月的第一天表示
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date month;

    /**
     * 小时工资
     */
    private BigDecimal hourPay;

    /**
     * 总工资
     */
    private BigDecimal totalSalary;

    /**
     * 加班工资
     */
    private BigDecimal overtimePay;

    /**
     * 调休扣款
     */
    private BigDecimal compoffPay;
}
